Skip to content

Conversation

@kvinwang
Copy link
Collaborator

Summary

Add a configurable timeout for DNS TXT record resolution when looking up app addresses. This prevents the gateway from hanging indefinitely when DNS resolution is slow or unresponsive.

Changes

  • Add dns_resolve timeout setting to Timeouts config struct
  • Apply timeout to resolve_app_address call in proxy_with_sni
  • Default timeout is 5 seconds

Configuration

[core.proxy.timeouts]
dns_resolve = "5s"

Test plan

  • Verify gateway starts with new config
  • Test DNS resolution timeout behavior with slow DNS
  • Verify existing functionality works with default timeout

Add a new `dns_resolve` timeout setting in the proxy timeouts config
to prevent DNS TXT record lookups from hanging indefinitely when
resolving app addresses.

Default timeout is 5 seconds, configurable via gateway.toml:
  [core.proxy.timeouts]
  dns_resolve = "5s"
@kvinwang kvinwang enabled auto-merge (squash) January 25, 2026 10:26
@kvinwang kvinwang merged commit f7afdce into master Jan 25, 2026
11 checks passed
@kvinwang kvinwang deleted the fix/gateway-txt-resolve-timeout branch January 26, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants